#include <Windows.h>
#include <stdio.h>
#include <tchar.h>
#include <list>
using namespace std;

#include "../../../../NetEngine_Windows/NetEngine_SourceCode/XyRyNet_CommHdr.h"
#include "../../../../NetEngine_Windows/NetEngine_SourceCode/NetEngine_Lib/NetEngine_BaseLib/BaseLib_Define.h"
#include "../../../../NetEngine_Windows/NetEngine_SourceCode/NetEngine_SystemSdk/NetEngine_SystemApi/SystemApi_Define.h"
#include "../../../../NetEngine_Windows/NetEngine_SourceCode/NetEngine_SystemSdk/NetEngine_SystemApi/SystemApi_Error.h"
#pragma comment(lib,"../../../../NetEngine_Windows/NetEngine_SourceCode/Debug/NetEngine_SystemApi.lib")

BOOL __stdcall EnumFile(LPCSTR lpFileOrPath, BOOL bFindPath, LPVOID lParam)
{
	if (bFindPath)
	{
		printf(_T("Path %s\r\n"),lpFileOrPath);
	}
	else
	{
		printf(_T("File %s\r\n"), lpFileOrPath);
	}
	return TRUE;
}

int main()
{
	SYSTEMAPI_SERIAL_INFOMATION st_SDKSerial;
	memset(&st_SDKSerial,'\0',sizeof(SYSTEMAPI_SERIAL_INFOMATION));

	DWORD dwOSVersion = 0;
	DWORD dwOSBuild = 0;
	DWORD dwOSProcessor = 0;
	TCHAR tszOSBuffer[MAX_PATH];
	memset(tszOSBuffer, '\0', MAX_PATH);
	SystemApi_System_GetSystemVer(tszOSBuffer, &dwOSVersion, &dwOSBuild, &dwOSProcessor);

	if (!SystemApi_HardWare_GetSerial(&st_SDKSerial))
	{
		return -1;
	}
	//WinSdk_File_EnumFile("D:\\1\\", EnumFile, NULL, TRUE, FALSE);
	return 0;
}